package com.lhkj.ct.meta.modules.gauge.model.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.lhkj.ct.base.enums.DeleteStatus;
import com.lhkj.ct.base.mybatis.IBaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 调查问卷
 * </p>
 *
 * @author jobob
 * @since 2023-10-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="TblQnr对象", description="调查问卷")
public class TblQnr implements IBaseEntity<String> {

    private static final long serialVersionUID = 1L;

    @TableId
    @ApiModelProperty(value = "问卷id")
    private String id;

    @ApiModelProperty(value = "问卷名称")
    private String qnrName;

    @ApiModelProperty(value = "问卷简介")
    private String introduction;

    @ApiModelProperty(value = "指导语")
    private String instruction;

    @ApiModelProperty(value = "问卷分类")
    private String category;

    @ApiModelProperty(value = "问卷标签")
    private String usability;

    @ApiModelProperty(value = "版本号")
    private Integer vNum;

    @ApiModelProperty(value = "题目json")
    private String questionJson;

    @ApiModelProperty(value = "状态 0.未完成 1.已完成 2.已分配")
    private Integer status;

    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建人")
    private String createBy;

    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.UPDATE)
    @ApiModelProperty(value = "修改人")
    private String updateBy;

    @TableField(fill = FieldFill.UPDATE)
    @ApiModelProperty(value = "修改时间")
    private LocalDateTime updateTime;

    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "删除状态 0.未删除 1.已删除")
    private DeleteStatus delFlag;

    @TableField(exist = false)
    @ApiModelProperty(value = "问卷题目")
    private List<TblGaugeQuestion> questions;

    @TableField(exist = false)
    @ApiModelProperty(value = "量表分类名称")
    private String cName;

    @TableField(exist = false)
    @ApiModelProperty(value = "适用人群名称")
    private String uName;

}
